package com.java.example.network

import com.java.example.network.response.BaseResponse
import io.reactivex.rxjava3.disposables.Disposable

/**
 * @author chenll
 * @date 2024/2/22
 */
interface ICallBack<T> {
    fun onStart(d: Disposable) {

    }

    @Throws(Exception::class)
    fun onResponse(t: T?) {
    }

    fun onFail(tResponse: BaseResponse<T>?, e: Throwable?) {

    }

    fun onEnd() {


    }
}
